package com.hzlx.badGoods.feign;

import com.hzlx.MesBadGoodsDto;
import com.hzlx.ProductionProductsDto;
import com.hzlx.ResultDto;
import com.hzlx.badGoods.feign.fallback.productionServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "productionService",
        value = "production-service",
        fallbackFactory = productionServiceFallbackFactory.class)
public interface productionService {
    @PostMapping("/production/productionProductsBydo")
    public ResultDto<String> deleteByProductIdByDo(MesBadGoodsDto mesBadGoodsDto);

    @PostMapping("/production/add/badGoods")
    public ResultDto<String> addBadGoods(@RequestBody ProductionProductsDto productionProductsDto);
}
